package com.tomato.spring.basic.web.logic.controller;


import com.tomato.spring.basic.web.logic.service.PetCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 萌宠大类分类表 前端控制器
 * </p>
 *
 * @author Surging
 * @since 2024-07-07
 */
@RestController
@RequestMapping("/petCategory")
public class PetCategoryController {

    @Autowired
    private PetCategoryService petCategoryService;

    @GetMapping("/list")
    public Object list() {
        return petCategoryService.list();
    }
}
